package com.md.model.request.system.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.md.util.StringUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 刘骄阳
 * 2023-10-17 14:48
 */
@Data
@ApiModel("更新超级管理员的权限请求实体")
public class UpdateMasterRoleRequest {
  @ApiModelProperty("角色Id")
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @NotNull(message = "角色Id不允许为空")
  private Long roleId;

  @Override
  public String toString() {
    return StringUtil.objectToJson(this);
  }
}
